package com.serial.comm.core.constants;

public class SerialConst {

    /**
     * 串口业务回执消息
     */
    public interface BusinessMessage {

        String OPEN_SUCCESS = "串口打开成功";
        String CLOSE_SUCCESS = "串口关闭成功";
        String NO_VALIADPORT = "未发现已打开的串口";
        String SERIAL_DATA_RECEIVING = "串口数据正在接收中...";
        //读取延迟
        int ONE_SECOND_DELAY = 1000;
        //写入延迟
        int TWO_SECOND_DELAY = 2000;
    }

    /**
     * 串口连接系统消息
     */
    public interface SysMessage {

        String PORT_CLOSED = ">>>>>>串口已关闭";
        String READY_TO_CONNECT = ">>>>>>准备连接串口";
        String LISTENER_READY = ">>>>>>串口监听器部署成功";
        String CONNECTION_INTERRUPT = ">>>>>>与串口设备通讯中断";
        String SERIAL_PORT_IS_EMPTY = ">>>>>>串口对象为空,监听失败";
        String NOVALID_DATA_PLEASE_CHECK = ">>>>>>读取数据过程中未获取到有效数据,请检查设备或程序";
        String WRITE_MSG_SUCCESS = ">>>>>>消息写入成功";
    }


}
